<div class="zs-body" data-ng-init="formInit('gztaskprogresstate', {
        keyField:'id',
        randomFields:['id'],
        orderObject:{id:0}
    }) && loadData('gztaskprogresstate');setConHei();">
    <div class="zs-map-tool">
        <div class="location">
            <a href="javascript:;">首页</a>
            <i class="right-arr"></i>
            <a href="javascript:;">任务管理</a>
            <i class="right-arr"></i>
            <a href="javascript:;">任务监测</a>
        </div>
        <div class="option">
            <input type="button" class="zs-btn orange" value="新建" 
                ng-click="addRow('gztaskprogresstate') && openWindow('edit');"/>
            <input type="button" class="zs-btn orange" value="编辑" 
                ng-click="editRow('gztaskprogresstate', gztaskprogresstate.sRows[0]) && openWindow('edit')"/>
            <input type="button" class="zs-btn orange" value="删除 "
                ng-click="delEntitys('gztaskprogresstate')"/>
        </div>
    </div>
    <div class="zs-content" style="position:unset">
        <div class="zs-nice-tab idTabs">
			<div class="tool item" style="margin-left:6px;">
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="ID" ng-model="gztaskprogresstate.queryObject['id']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="任务ID" ng-model="gztaskprogresstate.queryObject['rwid']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="任务主题" ng-model="gztaskprogresstate.queryObject['rwzt']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目ID" ng-model="gztaskprogresstate.queryObject['xmid']"/>
                </span>-->
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="项目名称" ng-model="gztaskprogresstate.queryObject['xmmc']"/>
                </span>
            	<!--<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="完成进度" ng-model="gztaskprogresstate.queryObject['wcjd']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="完成情况说明" ng-model="gztaskprogresstate.queryObject['wcqksm']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="下一步工作安排" ng-model="gztaskprogresstate.queryObject['xybjs']"/>
                </span>
				<span class="search-warpper">
                    <ag-Datebox id='qi_jlsj'  showcurday='true'
                       		class="zs-input" style="width:175px;height: 28px"
                       		ng-model="gztaskprogresstate.queryObject['jlsj']" >
				   	</ag-Datebox>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="监理人ID" ng-model="gztaskprogresstate.queryObject['jlrid']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="监理人名称" ng-model="gztaskprogresstate.queryObject['jlrmc']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="完成进度状态（提前，滞后，正常完成，正常进行）" ng-model="gztaskprogresstate.queryObject['wcjdzt']"/>
                </span>
            	<span class="search-warpper">
                    <i class="icon"></i>
                    <input type="text" class="zs-input" placeholder="时间" ng-model="gztaskprogresstate.queryObject['tbsj']"/>
                </span>-->
            </div>
            <div class="operation item">
                <a class="ope-1" ng-click="loadData('gztaskprogresstate')"></a>
                <a class="ope-2"></a>
            </div>
            <div class="switch">
                
            </div>
        </div>
        <div class="date-container">
            <div id="zpgwd">
                <div class="zs-data-table">
                    <div class="container">
                        <table>
                            <thead>
                                <tr>
                                    <th>
                                        <input id="allCheckbox" type="checkbox"
                                            ng-click="selectAll('gztaskprogresstate','allCheckbox');" />
                                    </th>
									<!--<th>ID</th>
									<th>任务ID</th>-->
									<th>任务主题</th>
									<!--<th>项目ID</th>-->
									<th>项目名称</th>
									<th>完成进度</th>
									<th>完成情况说明</th>
									<th>下一步工作安排</th>
									<th>监理时间</th>
								<!--	<th>监理人ID</th>-->
									<th>监理人名称</th>
									<th>完成进度状态（提前，滞后，正常完成，正常进行）</th>
									<th>时间</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr ng-repeat="r in gztaskprogresstate.datas">
                                    <td>
                                        <input type="checkbox"
                                            ng-click="selectRow('gztaskprogresstate',r);"
                                            ng-model="r.selected" />
                                    </td>
            						<!--<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.id"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.rwid"></label>
                                        </a>
                                   </td>-->
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.rwzt"></label>
                                        </a>
                                   </td>
            						<!--<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.xmid"></label>
                                        </a>
                                   </td>-->
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.xmmc"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.wcjd"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.wcqksm"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.xybjs"></label>
                                        </a>
                                   </td>
								   <td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.jlsj | asDate | date:'yyyy-MM-dd'"></label>
                                        </a>
                                   </td>
            						<!--<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.jlrid"></label>
                                        </a>
                                   </td>-->
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.jlrmc"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.wcjdzt"></label>
                                        </a>
                                   </td>
            						<td>
                                        <a ng-click="editRow('gztaskprogresstate',r) && openWindow('edit');">
                                            <label ng-bind="r.tbsj"></label>
                                        </a>
                                   </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="zs-pagination-box">
                    <ag-Page fn='gztaskprogresstate'></ag-Page>
                </div>
            </div>
        </div>

        <div ag-Window id="edit" title="任务监测编辑" width='560px' height='286px'>
            <div class="zs-form-tab ibox">
                <form name="form" novalidate>
                    <table width="100%">
                        <tbody>
          					<tr>
                                <td class="text" width="20%">任务主题</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.rwzt" class="zs-input" />
                                </td>

                                <td class="text" width="20%">项目名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.xmmc" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">完成进度</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.wcjd" class="zs-input" />
                                </td>
                                <td class="text" width="20%">完成情况说明</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.wcqksm" class="zs-input" />
                                </td>
       
                            </tr>
          					<tr>
                                <td class="text" width="20%">下一步工作安排</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.xybjs" class="zs-input" />
                                </td>
                                <td class="text" width="20%">监理时间</td>
                                <td class="left" width="30%">
                                	<ag-Datebox id='fi_jlsj'  showcurday='true'
		                        		class="zs-input" style="width:175px;height: 28px"
		                        		ng-model="gztaskprogresstate.editRow.jlsj" >
							   		</ag-Datebox>
                                </td>
                           </tr>
          					<tr>
                                <td class="text" width="20%">监理人名称</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.jlrmc" class="zs-input" />
                                </td>
                                <td class="text" width="20%">完成进度状态（提前，滞后，正常完成，正常进行）</td>
                                <td class="left" width="30%">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.wcjdzt" class="zs-input" />
                                </td>
                            </tr>
          					<tr>
                                <td class="text" width="20%">(提前时间或者超额)时间</td>
                                <td class="left" colspan="3">
                                	<input type="text" ng-model="gztaskprogresstate.editRow.tbsj" class="zs-input" />
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <input type="button" name="ok" value="保存" class="zs-btn c-red"
                                        ng-click="formValidate(form) && save('gztaskprogresstate', gztaskprogresstate.editRow, saveCloseWindow)"/>
                                    <input type="button" name="ok" value="取消" class="zs-btn c-green" 
                                        ng-click="closeWindow('edit')" />
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>